package org.visionlibrary.image.filters.clustering.proto.model;

public class GraySample extends CounterSample {
	public GraySample(int val) {
		super(0, 0, val);
	}
	
	@Override
	public double distanceFrom(Sample sample) {
		return Math.pow(sample.sat, 2) + Math.pow((val - sample.val), 2);
	}
	
	@Override
	public String toString() {
		return "GraySample" + super.toString();
	}
}
